package com.gosophia.metadataEngine.action;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import com.gosophia.commons.web.action.BaseSupportAction;
import com.gosophia.metadataEngine.dto.MetaDataTableDto;
import com.gosophia.metadataEngine.ws.MetadataEngineWebService;

/**
 * 进入元数据表编辑页面
 * @author wangxinbing
 * @since 2011-5-10
 */
@Controller("ToEditMetadataTableInfoPageAction")
@Scope("prototype")
public class ToEditMetadataTableInfoPageAction extends BaseSupportAction{

	private Long metaDataTableId;
	
	private MetaDataTableDto metaDataTableDto;
	@Autowired
	private MetadataEngineWebService metadataEngineWebService;
	
	public String _execute() throws Exception{
		metaDataTableDto = metadataEngineWebService.findMetaDataTableById(metaDataTableId);
		return SUCCESS;
	}
	public Long getMetaDataTableId() {
		return metaDataTableId;
	}
	public void setMetaDataTableId(Long metaDataTableId) {
		this.metaDataTableId = metaDataTableId;
	}
	public MetaDataTableDto getMetaDataTableDto() {
		return metaDataTableDto;
	}
	public void setMetaDataTableDto(MetaDataTableDto metaDataTableDto) {
		this.metaDataTableDto = metaDataTableDto;
	}
}
